from src.utils.record.TbRecord import TbRecord
from common.models import *
from src.utils.record import serializers


class LeaderBoardRecord(TbRecord):
    """
    排行榜
    """
    serializer = serializers.LeaderboardSerializer
    model = TbLeaderboard


class LikeRecordRoecord(TbRecord):
    """
    点赞记录
    """
    serializer = serializers.LikeRecordSerializer
    model = TbLikeRecord


class GameRecord(TbRecord):
    """
    赛事
    """
    serializer = serializers.GamesSerializer
    model = TbGames


class GamePicRecord(TbRecord):
    """
    赛事图片
    """
    serializer = serializers.GamePicSerializer
    model = TbGamesPic


class GameApplyRecord(TbRecord):
    """
    赛事报名
    """
    serializer = serializers.GameApplySerilizer
    model = TbGameApply


class OrderRecord(TbRecord):
    """
    订单
    """
    serializer = serializers.OrderSerilizer
    model = TbOrders


class ChatgroupRecord(TbRecord):
    """
    讨论组
    """
    serializer = serializers.ChatgroupSerilizer
    model = ImChatgroup


class MessageRecord(TbRecord):
    """
    消息
    """
    serializer = serializers.MessageSerilizer
    model = ImMessage


class UserRecord(TbRecord):
    """
    用户
    """
    serializer = serializers.UserSerializer
    model = TbMiniappUser


class SiteRecord(TbRecord):
    """
    场地
    """
    serializer = serializers.SiteSerializer
    model = TbSite


class SiteApplyRecord(TbRecord):
    """
    场地申请
    """
    serializer = serializers.SiteApplySerializer
    model = TbSiteApply
